<%-- 
    Document   : index3
    Created on : 2015-9-24, 11:26:44
    Author     : Fire
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script src="plugins/react/react.js" type="text/javascript"></script>
        <script src="plugins/react/browser.min.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="example"></div>
        <script type="text/babel">
            var arr=[
                        <h1>hello world!</h1>,
                        <h2>React is awesome</h2>
            ];
            React.render(
            <div>{arr}</div>,
            document.getElementById('example')
            );
        </script>
    </body>
</html>
